package cn.ex.de001.common.pool;

import jakarta.annotation.PreDestroy;
import org.springframework.stereotype.Component;

/***
  * @Message  关闭线程池
 */

@Component
public class AppShutdownHook {


    @PreDestroy
    public void onShutdown() {
        PoolHeplExecutor.shutdownExecutorService(PoolHeplExecutor.getPool()); // 关闭线程池
    }

}
